﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jack.IData;

namespace Jack.ISpider
{
    public class SpiderManage
    {
        private WebInfo _webinfo = new WebInfo();
        private ISpider spider;
        public SpiderManage(WebInfo webinfo)
        {
            _webinfo = webinfo;
            if ((int)_webinfo.WebGrabbing == 0)
                spider = new GetSpider();
            else
                spider = new PostSpider();
        }

        public void CmdSpider()
        {
            spider.SpiderData(_webinfo);
        }
    }
}
